package com.atguigu.easyexcel.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.format.NumberFormat;
import lombok.Data;
import java.util.Date;
@Data
public class StudentExcelData {
    @ExcelProperty(value = "姓名",index = 8)
    private String name ;
    @ExcelProperty("生日")
    @DateTimeFormat("yyyy年MM月dd天 HH时mm分ss秒")
    private Date birthday ;
    @ExcelProperty("薪资")
    @NumberFormat("#.#")
    private Double salary ;
    @ExcelIgnore
    private Integer age ; //忽略字段
}
